﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace GDD2_Game3
{
    class FinishLine : GameObject
    {
        public FinishLine(float x, float y, float width, float height)
            : base(x, y, width, height)
        {

        }

		public void update(Vehicle vehicle)
		{
			if(colliding(vehicle))
			{
				vehicle.IsFinished = true;
			}
		}
    }
}
